import { Body, Controller, Post } from '@nestjs/common'
import { AdminLoginReq } from 'src/dtos/admin.dto'
import { AdminService } from 'src/services/admin.service'

@Controller('admin')
export class AdminController {
  constructor(private readonly adminService: AdminService) { }

  @Post('login')
  public login(@Body() dto: AdminLoginReq) {
    return this.adminService.login(dto)
  }

}
